package org.scohen.juploadr.app.geo;

public class GeoLocation implements Comparable<GeoLocation>{
    private double latitude;
    private double longitude;
    private int accuracy;
    private String name;
    
    public GeoLocation(){}
    
    public GeoLocation(String name, double latitude, double longitude) {
        this.latitude = latitude;
        this.longitude = longitude;
        this.name = name;
    }
    public int getAccuracy() {
        return accuracy;
    }
    public void setAccuracy(int accuracy) {
        this.accuracy = accuracy;
    }
    public double getLatitude() {
        return latitude;
    }
    public void setLatitude(double latitude) {
        this.latitude = latitude;
    }
    public double getLongitude() {
        return longitude;
    }
    public void setLongitude(double longitude) {
        this.longitude = longitude;
    }
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }

    public int compareTo(GeoLocation geo) {
        return getName().compareToIgnoreCase(geo.getName());
    }
    
}
